package com.telecom.restaurant.domin.vo;

import com.telecom.restaurant.util.MoneyUtil;

/**
 * Created by qiqi on 2019/12/14.
 */
public class MenuFoodVO {

    private Long id;

    private Long restaurantId;

    private String name;

    private String picture;

    private Integer price;

    private Integer type;

    private Integer stock;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRestaurantId() {
        return restaurantId;
    }

    public void setRestaurantId(Long restaurantId) {
        this.restaurantId = restaurantId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getPriceForShow() {
        if (this.price == null) {
            return "0.00";
        }
        return MoneyUtil.convertFen2Yuan(price);
    }
}
